import request from '@/utils/request'

export function getList() {
  return request({
    url: '/manager/infoSection/getSections',
    method: 'post'
  })
}

export function parentSection() {
  return request({
    url: '/manager/infoSection/parentSection'
  })
}

export function getId(id) {
  return request({
    url: `/manager/infoSection/getSectionInfo/${id}`,
    method: 'post',
    data:id
  })
}

export function delId(id) {
  return request({
    url: `/manager/infoSection/delSection/${id}`,
    method: 'post',
    data:[id]
  })
}

export function update(params) {
  return request({
    url: '/manager/infoSection/modifySection',
    method: 'post',
    data:params
  })
}

export function add(params) {
  return request({
    url: '/manager/infoSection/addInfoSection',
    method: 'post',
    data:params
  })
}

